﻿<html>
<head><title>Javascript实验</title>
<script>
	function check(){
		with (document.all){
			if(input.value!=input.value){
				alert("两次输入的密码 不一样")
				input1.value="";
				input2.value="";
				}else
					document.forms[0].submit();
				}
			}
</script>
</head>
<body>
	<FORM METHOD=POST ACTION="">
		请输入密码：<input type="password" id="input1"><br>
		请再次输入密码：<input type="password" id="input2">
		<input type="button" value="提交" onclik="check()">
	</FORM>
	<center><a href="./main.html">点击返回主界面</a><br></center>
</body>
</html>
		